#include <stdio.h>
#include <string.h>
#include "hmacmd5.h"

void main()
{
	char key[1024], buf[1024], digest[16], hex[33];
	struct MD5Context md5;
	while(~scanf("%s", buf)) {
		printf("MD5(\"%s\")= ", buf);
		MD5Init(&md5);
		MD5Update(&md5, buf, strlen(buf));
		MD5Final(digest, &md5);
		MD5HexString(hex, digest);
		printf("HEX %s\n", hex);
	}
}

